//
//  TOBaseModel.m
//  MVC
//
//  Created by dllo on 15/11/16.
//  Copyright © 2015年 田鸥. All rights reserved.
//

#import "TOBaseModel.h"

@implementation TOBaseModel

-(instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    self = [super init];
    
    if (self) {
        
        [self setValuesForKeysWithDictionary:dictionary];
    }
    
    return self;
}
+(instancetype)modelWithDictionary:(NSDictionary *)dictionary
{
    
    return [[self alloc] initWithDictionary:dictionary];
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{

}

@end
